-- GENERATED SPELL FOR [Vampiric Duskbat] --


function spell0_1554(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1554', 2336, 1)
end

function Sorts_1554(pUnit, Event)
local choix_sorts_1554 = math.random(0, 0)
if choix_sorts_1554 == 0 then
pUnit:RegisterEvent('spell0_1554', 1, 1)
end
end

function mob1554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1554', math.random(1500, 3000), 1)
end

function mob1554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1554, 1, 'mob1554_Action')
RegisterUnitEvent(1554, 2, 'mob1554_Leave')
RegisterUnitEvent(1554, 3, 'mob1554_Kill')
RegisterUnitEvent(1554, 4, 'mob1554_Die')
